<template>
   <div class="h-contact1">
      <div class="h-contact2 w1080">
          <ul>
              <li>
                  <div class="h-conttop clearfix">
                      <div class="h-contlt fl">{{list.title}}</div>
                      <div class="h-contrt fr">{{list.author}}</div>
                  </div>
                  <div class="h-contbot">{{list.content}}<span>[查看详情]</span>
                  </div>
              </li>
          </ul>
      </div>
   </div>
</template>
<script setup>
import { getCurrentInstance, ref } from 'vue'
const list = ref([])
const { proxy } = getCurrentInstance()
proxy.$http.get('http://www.kymid.com/testphp/public/index.php/api/apis/news_page_list?page=1&pagesize=1').then(val => {
    list.value = val.data.msg[0]
    console.log(val)
})
</script>
<style src="@/assets/css/up-data.css" scoped>

</style>
